package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: Mouoal
 * @CreateTime: 2024-11-07  11:50
 * @Version: 1.0
 */
@Mapper
public interface SysUserMapper {

    /**
     * 根据用户名查询用户数据
     * @param userName
     * @return
     */
    public abstract SysUser selectByUserName(String userName) ;
    public abstract List<SysUser> findByPage(SysUserDto sysUserDto);

    public abstract SysUser findByUserName(String name);
    public abstract void saveSysUser(SysUser sysUser);

    public abstract  void updateSysUser(SysUser sysUser);

    public abstract  void deleteById(Long userId);
}